#include"bankaccount.h"
#include<iostream>

BankAccount::BankAccount(const std::string& client,const std::string &num,double bal )
{
    name = client;
    acctnum = num;
    balance = bal;
}

void BankAccount::show()const
{
    std::cout << "The name is " << name << "'s account num is " << acctnum << " has balance is " << balance << std::endl;
}

void BankAccount::deposit(double cash)
{
    balance += cash;
}

void BankAccount::withdraw(double cash)
{
    balance -= cash;
}